<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title>{{ config "String" "AppName" "CMDB" }}</title>
    {{ assets_css "/static/login/components/bootstrap-4.5.3/css/bootstrap.min.css" }}
    {{ assets_css "/static/login/css/login.css"}}
</head>

<body>
    <div class="container">
        <div class="row">
            <div class="offset-4 col-4">
                <div class="login shadow-lg p-3 mb-5 rounded">
                    <form action="{{ urlfor `AuthController.Login` }}" method="POST">
                        <h1 class="text-center">用户登录</h1>
                        <div class="form-group row">
                            <div class="col-12">
                                <input class="form-control" type="text" name="name" placeholder="用户名"
                                    value="{{ .form.Name }}" />
                            </div>
                        </div>
                        <div class="form-group row">
                            <div class="col-12">
                                <input type="password" class="form-control" name="password" placeholder="密码" value="" />
                            </div>

                        </div>
                        <div class="form-group row">
                            <div class="col-12">
                                <input type="submit" class="btn btn-primary btn-block" value="登录" />
                            </div>
                        </div>
                    </form>
                </div>

            </div>
        </div>

    </div>

</body>

</html>